/**
 * @Author: yangzhenhua
 * @Date:   2023-04-08 10:14:54
 * @Last Modified by:   yangzhenhua
 * @Last Modified time: 2023-04-10 11:08:05
 */
import Vue from 'vue'

import api from './api/index.js'
import base from './mixins/index.js'

Vue.prototype.$api = api
Vue.mixin(base)

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import '@/styles/wang.scss'   // css

import App from './App'
import store from './store'
import router from './router'
import interval from "@/components/interval.vue";
Vue.component('interval', interval)
import '@/icons' // icon
import '@/permission' // permission control

if (process.env.NODE_ENV === 'production') {
  const { mockXHR } = require('../mock')
  mockXHR()
}
import VueAnimateNumber from 'vue-animate-number'
Vue.use(VueAnimateNumber)
Vue.use(ElementUI)
if (process.env.NODE_ENV !== 'development') {
  console.log = () => {
  }
} //生产模式
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
